#!/usr/bin/env python3
#coding=utf8
import plugins

def sss(*args):
    while True:
        cmd = input('sss>')
        print(cmd,'scan',args)

def ppp(*v):
    print(1111,v)

def hhh(*v):
    print(plugins.BaseConfig)

ss={'hh':hhh,'ss':sss,'pp':ppp}

LOGO = (
'________________________________________________\n'
'| ++++   +++++  +++++  +++++     +     +     +  |\n'
'| +   +     +   +      +        + +    + +   +  |\n'
'| +   +    +    +++++  +       +   +   +  +  +  |\n'
'| +   +   +         +  +      +++++++  +   + +  |\n'
'| ++++   +++++  +++++  +++++  +     +  +    ++  |\n'
'|                                               |\n'
'|   Author:     664284092@QQ.COM                |\n'
'|   Create:     2015-10-25                      |\n'
'|   Update:     2015-10-25                      |\n'
'|  Version:     0.1                             |\n'
'|_______________________________________________|')

print(LOGO)

while True:
    try:
        cmd = input('DzScan>').split()
        cmd,args = cmd[0],cmd[1:]
        p=ss.get(cmd,hhh)
        print(type(p),p)
        p(*args)
    except:pass
